package api.workerswithdb;

import java.sql.Connection;
import java.util.ArrayList;

import api.entitites.IMaster;

public interface IDAOMaster {
	
	public Boolean insertMasterToDB(IMaster master);

	public IMaster getMasterFromDb(String masterName);

	public ArrayList<IMaster> SortMasters(SortMastersBy sortMastersBy);

	public Integer getOrderByMaster(String masterName);

	public Integer getIdMaster(String masterName);

	public Boolean deleteMaster(String masterName);
	
	void updateMaster(Connection connection,Boolean employmentMaster,Integer idMaster);

}
